package com.cwl.base.day01;

/**
 * @program: java_base
 * @description: 位运算符
 * @author: ChenWenLong
 * @create: 2019-11-05 15:09
 **/
public class TestOperator04 {

    public static void main(String[] args) {
        int  a = 3;
        int  b =4;
        System.out.println(a&b);
        System.out.println(a|b);
        System.out.println(a^b);
        System.out.println(~a);

        //移位
        int  c = 3<<2;
        System.out.println(c);
        System.out.println(12>>1);
    }
}
